<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    *{
      margin: 0;
      height: 0;
    }
    .app{
      margin: 0 auto;
      width: 200px;
      height: 50px;
      background-color: pink;
    }
    p{
      width: 200px;
      height: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  </style>
</head>
<body>
  <div class="app">
    <p>穿山甲打你哦啊是你的就卡死你尽快</p>
  </div>
</body>
</html>